﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpDemos
{
    public class BaseClass
    {
        public BaseClass()
        {
        }

        public void ShadowMethod()
        {
            Console.WriteLine("This is base class method.");
        }
    }

    public class DerivedClass : BaseClass
    {
        public DerivedClass()
        {
        }

        public new void ShadowMethod()
        {
            Console.WriteLine("This is derived class method.");
        }
    }
}
